Chapter 2 - Core Printing Features
This chapter describes how your application can use the core set of QuickDraw GX printing features to print documents created with QuickDraw GX. Read the information in this chapter if you want to print your application's documents to an output device. For example, you might use QuickDraw GX to print to a LaserWriter a document that contains some text and a few illustrations.Before reading this chapter, you should be familiar with the basic concepts and user interface for printing with QuickDraw GX, as described in the chapter "Introduction to Printing With QuickDraw GX" in this book.
This chapter describes the basic QuickDraw GX print objects: a job, a format, and a paper type. This chapter also shows you how to
- set up the QuickDraw GX printing environment
- create a job object that contains the information needed to print a document
- detect error conditions
- print your application's documents
- save job object information when a user saves a document
- dispose of a job object when a user closes a document
- retrieve job object information when a user opens a document
- obtain information on a format object
- display QuickDraw GX print dialog boxes
- support printing from the Finder
- convert a print record into a job object to print existing documents designed for printing with the Macintosh Printing Manager
Chapter Contents
- About Core Printing Features
- Core Print Objects
- Job Object Properties
- Format Object Properties
- Paper-Type Object Properties
- Edit Menu Structure
- Using Core Printing Features
- Initializing QuickDraw GX Printing
- Creating a Job Object for a Printable Document
- Error Handling
- Supporting QuickDraw GX Print Dialog Boxes
- Printing Documents Using QuickDraw GX
- Printing Pages as Single Picture Shapes
- Printing Pages by Capturing Shapes
- Saving a Job Object With a Document File
- Saving a Job Object in a Single Handle
- Saving a Job Object Using a Flattening Function
- Disposing of a Job Object When Closing a Document
- Retrieving a Job Object When Opening a Document
- Retrieving a Job Object From a Handle
- Retrieving a Job Object Using an Unflattening Function
- Obtaining Object References
- Obtaining Information From a Format Object
- Displaying QuickDraw GX Print Dialog Boxes
- Displaying the Page Setup Dialog Box
- Displaying the Print Dialog Box
- Supporting Printing From the Finder
- Updating Job Object Information
- Printing Macintosh Printing Manager Documents
- Core Printing Features Reference
- Constants and Data Types
- Gestalt Selectors for Printing
- QuickDraw GX Printing-Related Objects
- Edit Menu Location
- Dialog Box Results
- Functions
- Initializing and Terminating QuickDraw GX Printing Features
- Handling Errors
- Creating and Managing Job Objects
- Printing With QuickDraw GX
- Obtaining Information on Printing-Related Objects
- Displaying the Page Setup and Print Dialog Boxes
- Converting a Print Record
- Application-Defined Functions
- Message Override Functions
- Flattening and Unflattening Functions for Job Objects
- Summary of Core Printing Features
- Constants and Data Types
- Gestalt Selectors for Printing
- QuickDraw GX Printing-Related Objects
- Edit Menu Record Structure
- Dialog Box Results
- Functions
- Initializing and Terminating QuickDraw GX Printing Features
- Handling Errors
- Creating and Managing Job Objects
- Printing With QuickDraw GX
- Obtaining Information on Printing-Related Objects
- Displaying the Page Setup and Print Dialog Boxes
- Converting a Print Record
- Application-Defined Functions
- Message Override Functions
- Flattening and Unflattening Functions for Job Objects
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help